import { createApp } from "vue";
import { createPinia } from "pinia";

import App from "@/App.vue";
import router from "./router";
import useVant from "@/plugins/vant"
import "@/assets/icon/iconfont.css"
import "@/style/index.css"
import Header from '@/components/navbar.vue'
import {store, key} from '@/stores/store'
import {Dialog} from 'vant'

const app = createApp(App);
app.config.globalProperties.$dialog = Dialog;
app.component('com-header', Header);
app.use(createPinia());
app.use(router)
app.use(store, key)
useVant(app)
app.mount("#app");
